An error appears if you define a batch option in your Fix_Batches control group without defining an identical option in the Print_Batches control group. For example, based on the settings below, the BATCH2 option causes an error because it is not defined in the Print_Batches control group:
< Fix_Batches >
Batch1 = BAT1.BCH
Batch2 = BAT2.BCH <<--- Illegal
< Print_Batches >
Batch1 = BAT1.BCH
In this example, the utility updates the NEWTRN.DAT file and the first recipient batch. The output files will have the same name as the input files, but will be stored in the \fixout directory. This example assumes the input files are in the \data directory.
< Data >
DataPath =.\data
NewTrn = newtrn.dat
< Print_Batches >
Batch1 = BATCH1.BCH
Batch2 = BATCH2.BCH <- Note: This batch will not be corrected.
< FixOffsets>
Outpath=.\fixout
NewTrn = newtrn.dat
< Fix_Batches >
Batch1=BATCH1.BCH
Normally this utility creates new files with the corrected offsets and leaves the original files intact. You can, however, have the utility overwrite the original files by specifying the same file names and paths for input and output. These INI settings force the utility to alter the input file instead of creating a new file:
< Data >
DataPath =.\data
NewTrn = newtrn.dat
< Print_Batches >
Batch1 = BATCH.BCH
Error = ERROR.BCH
< FixOffsets >
Outpath=.\data
NewTrn = newtrn.dat
< Fix_Batches >
Batch1 = BATCH.BCH
Error = ERROR1.BCH
If the FixOffsets control group has not been set up in the INI file, the utility will use the default file names and will write all output to the \data directory.
< Data >
DataPath =.\data
NewTrn = newtrn.dat
< Print_Batches >
Batch1 = BATCH.BCH
Error = ERROR.BCH
The corrected version of the NEWTRN.DAT file is named FXNEWTRN.DAT. The corrected version of Batch1 is named FXBAT00. The corrected version of Error is named FXBAT01.
© Copyright 2012, Oracle and/or its affiliates. All rights reserved. Legal notices.